import { createRouter, createWebHashHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import PageViews from '../views/PageView.vue'

import BigNorm from '../views/norm/BigNorm.vue'
import AppendixSterility from '../views/appendix/sterility.vue'
import AppendixSoftware from '../views/appendix/software.vue'
import AppendixIvd from '../views/appendix/ivd.vue'
import AppendixDenture from '../views/appendix/denture.vue'
import AppendixImplan from '../views/appendix/implan.vue'

import BigGuide from '../views/guide/bignorm.vue'
import SterilityGuide from '../views/guide/sterility.vue'
import SoftwareGuide from '../views/guide/software.vue'
import DentureGuide from '../views/guide/denture.vue'
import IvdGuide from '../views/guide/ivd.vue'
import ImplanGuide from '../views/guide/implan.vue'

import CodechainFinger from '../views/finger/codechain.vue'
import ManagerFinger from '../views/finger/manager.vue'
import ProviderFinger from '../views/finger/provider.vue'
import RegcheckFinger from '../views/finger/regcheck.vue'
import WaterFinger from '../views/finger/water.vue'


import PageGuide from '../views/homepages/guide.vue'
import PageNrom from '../views/homepages/norm.vue'
import PageFinger from '../views/homepages/finger.vue'

const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      redirect: '/home/guide'
    }, {
      path: '/home',
      name: 'home',
      component: HomeView,
      children: [
        {
          path: 'guide',
          name: 'guide',
          component: PageGuide
        }, {
          path: 'norm',
          name: 'norm',
          component: PageNrom
        }, {
          path: 'finger',
          name: 'finger',
          component: PageFinger
        }

      ]
    }, {
      path: '/page',
      name: 'page',
      component: PageViews,
      children: [
        {
          path: 'guide_big',
          name: 'guide_big',
          component: BigGuide
        }, {
          path: 'guide_sterility',
          name: 'guide_sterility',
          component: SterilityGuide
        }, {
          path: 'guide_ivd',
          name: 'guide_ivd',
          component: IvdGuide
        }, {
          path: 'guide_denture',
          name: 'guide_denture',
          component: DentureGuide
        }, {
          path: 'guide_software',
          name: 'guide_software',
          component: SoftwareGuide
        }, {
          path: 'guide_implan',
          name: 'guide_implan',
          component: ImplanGuide
        }, {
          path: 'bignorm',
          name: 'bignorm',
          component: BigNorm
        }, {
          path: 'appendix_sterility',
          name: 'appendix_sterility',
          component: AppendixSterility
        }, {
          path: 'appendix_ivd',
          name: 'appendix_ivd',
          component: AppendixIvd
        }, {
          path: 'appendix_denture',
          name: 'appendix_denture',
          component: AppendixDenture
        }, {
          path: 'appendix_software',
          name: 'appendix_software',
          component: AppendixSoftware
        }, {
          path: 'appendix_implan',
          name: 'appendix_implan',
          component: AppendixImplan
        }, {
          path: 'finger_codechain',
          name: 'finger_codechain',
          component: CodechainFinger
        }, {
          path: 'finger_manager',
          name: 'finger_manager',
          component: ManagerFinger
        }, {
          path: 'finger_provider',
          name: 'finger_provider',
          component: ProviderFinger
        }, {
          path: 'finger_regcheck',
          name: 'finger_regcheck',
          component: RegcheckFinger
        }, {
          path: 'finger_water',
          name: 'finger_water',
          component: WaterFinger
        }
      ]
    }
  ]
})

export default router
